<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class UserSignLog extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'user_sign_log';

    protected $fillable = [
        'user_id',
        'sign_time',
        'sign_reward',
    ];

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'user_id');
    }
}
